home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 274 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.9 KB  |  53 lines

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: kanze@gabi.gabi-soft.fr (J. Kanze)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: #ifdef XXXX
  5. Date: 3 Feb 1996 17:17:27 GMT
  6. Organization: GABI Software, Sarl.
  7. Approved: clamage@eng.sun.com (comp.std.c++)
  8. Message-ID: <KANZE.96Feb3113609@gabi.gabi-soft.fr>
  9. References: <1996Feb1.092058.4745@iiasa.ac.at>
  10. NNTP-Posting-Host: taumet.eng.sun.com
  11. Content-Type: text
  12. X-Nntp-Posting-Host: gabi.gabi-soft.fr
  13. In-Reply-To: marek@iiasa.ac.at's message of 01 Feb 96 15:50:32 GMT
  14. Content-Length: 1173
  15. Originator: clamage@taumet
  16.  
  17. In article <1996Feb1.092058.4745@iiasa.ac.at> marek@iiasa.ac.at (Marek
  18. MAKOWSKI) writes:
  19.  
  20. > Would not it be sensible to add to the preprocessing a directive
  21. > that would stop processing the current file ? Something like
  22. > #ifdef XXXX
  23. > #exit
  24. > this would safe processing (sometimes very long) file in the common
  25. > situations:
  26. > #ifdef XXXX
  27. > // a (possibly) long header file hear
  28. > #endif  /* ifdef XXXX*/
  29.  
  30. Why bother?  The usual procedure is for the compiler to recognize the
  31. pattern the first time it reads the file, and not even open it in
  32. further include declarations.
  33.  
  34. (I know that g++ does this, but I seem to recall from some earlier
  35. discussion someone at Sun claiming that they had done measurements, and
  36. it wasn't worth the bother.  Given that it sometimes takes close to a
  37. second to open a file on one customer's network, I'm rather sceptical of
  38. these results.)
  39.  
  40. -- 
  41. James Kanze           (+33) 88 14 49 00          email: kanze@gabi-soft.fr
  42. GABI Software, Sarl., 8 rue des Francs Bourgeois, 67000 Strasbourg, France
  43. Conseils, Θtudes et rΘalisations en logiciel orientΘ objet --
  44.               -- A la recherche d'une activitΘ dans une region francophone
  45.  
  46. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  47.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  48.   summarized in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html
  49. ]
  50.